<?php
session_start();
if(!isset($_SESSION['uid']))
 	{?>
		<script type="text/javascript">
			window.location="error.php";
		</script>
	<?php
 	}else
 		{
			include_once 'dataBaseConnectivityFile.php';
			$Deleteitem_id=$_REQUEST["safety_id"];
			$sql_query=mysql_query("DELETE FROM safety where SAFETY_ID=".$Deleteitem_id."	");
		?>
			    <script type="text/javascript">
			        alert("Deleted");
			        window.location="viewCar.php";
			    </script>
				<?php
 		}
	?>s